package com.smart.core.starter.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author guxiaobai
 * @date 2018/12/6
 */
public class PasswordUitl {

    private static final PasswordEncoder ENCODER = new BCryptPasswordEncoder();


    public final static String password(String password) {
        return ENCODER.encode(password);
    }


}
